package com.education.wisdom.service;


import com.education.wisdom.pojo.Help;

import java.util.List;
import java.util.Map;

/**
 * 求助 服务层
 *
 * @author ruoyi
 * @date 2019-01-24
 */
public  interface IHelpService {
    /**
     * 查询求助信息
     *
     * @param id 求助ID
     * @return 求助信息
     */
    public Help selectHelpById(Integer id);

    /**
     * 查询求助列表
     *
     * @param help 求助信息
     * @return 求助集合
     */
    public List<Help> selectHelpList(Help help);

    /**
     * 新增求助
     *
     * @param help 求助信息
     * @return 结果
     */
    public int insertHelp(Help help);

    /**
     * 修改求助
     *
     * @param help 求助信息
     * @return 结果
     */
    public int updateHelp(Help help);

    /**
     * 删除求助信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHelpByIds(String ids);

    public List<Help> selectList();

    public List<Help> selectHelpByUserId(String userId);

    public List<Help> selectListByTime();

    public List<Help> selectByCurrency(Map<String, Object> map);

    public List<Help> selectListByBrowse(Map<String, Object> map);

    public List<Help> selectAllList(Map<String, Object> map);

    public List<Help> selectListAll(Map<String, Object> map);

    public List<Help> selectByCurrencys(Map<String, Object> map);

    public List<Help> selectListByBrowses(Map<String, Object> map);

    List<Help> selectByNotAdopted();

    List<Help> selectByUserIdAndType(Map<String, Object> map);
}
